// 引入变量和全局样式
@use "var.scss" as *;
@use "global.scss" as *;

.tag-box {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-bottom: 1.5rem;
}

.header {
    display: flex;
    align-items: center;
    width: 100%;
}

.folded-tags {
    display: none;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* 添加高度变化的过渡效果 */
}

.tag {
    //background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);
    color: #90cacc;
    padding: 0.5rem;
    font-size: 1.2rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    -webkit-border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -ms-border-radius: 0.25rem;
    -o-border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.tag:hover,
.tag:focus {
    //background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    /* 鼠标悬停或获取焦点时变色效果 */
    color: #ea5e74;
}

.foldButton {
    cursor: pointer;
    margin-left: auto;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.foldIcon {
    width: 1.5rem;
    /* 调整SVG图标的大小 */
    height: 1.5rem;
    fill: #fff;
    /* SVG图标的颜色 */
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

.foldIcon.rotated {
    transform: rotate(180deg);
    /* 添加旋转效果 */
}
